using Swashbuckle.AspNetCore.SwaggerGen;

namespace VegetableSale.NET.Entities.EGooden;

public class GoodQuery
{
    private string commname;
    private double commoney;
    private string commdesc;
    private int providerid;
    private string size;
    private string pvename;
    private string picture;

    public GoodQuery(string commname, double commoney, string commdesc, int providerid, string size, string pvename, string picture)
    {
        this.commname = commname;
        this.commoney = commoney;
        this.commdesc = commdesc;
        this.providerid = providerid;
        this.size = size;
        this.pvename = pvename;
        this.picture = picture;
    }

    public string Commname
    {
        get => commname;
        set => commname = value ?? throw new ArgumentNullException(nameof(value));
    }

    public double Commoney
    {
        get => commoney;
        set => commoney = value;
    }

    public string Commdesc
    {
        get => commdesc;
        set => commdesc = value ?? throw new ArgumentNullException(nameof(value));
    }

    public int Providerid
    {
        get => providerid;
        set => providerid = value;
    }

    public string Size
    {
        get => size;
        set => size = value ?? throw new ArgumentNullException(nameof(value));
    }

    public string Pvename
    {
        get => pvename;
        set => pvename = value ?? throw new ArgumentNullException(nameof(value));
    }

    public string Picture
    {
        get => picture;
        set => picture = value ?? throw new ArgumentNullException(nameof(value));
    }
}